]> dgit.raspbian.org Git - grub2.git/commitdiff
powerpc_ieee1275: Excluding the PKS for grub-emu on 32-bit PowerPC
authorSudhakar Kuppusamy <sudhakar@linux.ibm.com>
Fri, 27 Feb 2026 13:41:43 +0000 (19:11 +0530)
committerSteve McIntyre <93sam@debian.org>
Wed, 23 Sep 2026 20:39:45 +0000 (21:39 +0100)
Configuring the build with --with-platform=emu fails on 32-bit PowerPC with:

/usr/bin/ld: appendedsig.module: in function `grub_mod_init':
/home/glaubitz/grub/grub-core/commands/appendedsig/appendedsig.c:1615:(.text+0x2ab4): undefined reference to `grub_pks_get_keystore'
/usr/bin/ld: appendedsig.module: in function `create_dbs_from_pks':
/home/glaubitz/grub/grub-core/commands/appendedsig/appendedsig.c:1400:(.text+0x2c3c): undefined reference to `grub_pks_free_data'
collect2: error: ld returned 1 exit status

Fixing this by excluding the Platform Keystore (PKS) for grub-emu on 32-bit PowerPC.

Reported-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: Sudhakar Kuppusamy <sudhakar@linux.ibm.com>
Origin: upstream, https://gitlab.freedesktop.org/gnu-grub/grub/-/commit/aaaf5037887ea33394975f9e86360476bb6fa6f5
Bug-Debian: https://bugs.debian.org/1127348
Forwarded: https://lists.gnu.org/archive/html/grub-devel/2026-02/msg00077.html
Last-Update: 2026-07-11
Patch-Name: powerpc-fix-pks-grub-emu-ftbfs.patch

Gbp-Pq: Name powerpc-fix-pks-grub-emu-ftbfs.patch

include/grub/powerpc/ieee1275/platform_keystore.h

index 931ada22420adf25ed36eb26cf2bdefd45bb3d63..f78e449535eddfbdf2c6e9caa10a62074d682af2 100644 (file)
@@ -96,7 +96,7 @@ struct grub_pks
 };
 typedef struct grub_pks grub_pks_t;
 
-#if defined(__powerpc__)
+#if defined(__powerpc__) && !defined(GRUB_MACHINE_EMU)
 /* Initialization of the Platform Keystore. */
 extern void
 grub_pks_keystore_init (void);